home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bpluginmanager.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.6 KB  |  71 lines

  1. /* 
  2.  *
  3.  * $Id: k3bpluginmanager.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef _K3B_PLUGIN_MANAGER_H_
  17. #define _K3B_PLUGIN_MANAGER_H_
  18.  
  19. #include <qobject.h>
  20. #include <qptrlist.h>
  21. #include <qstringlist.h>
  22. #include "k3b_export.h"
  23.  
  24.  
  25. class K3bPlugin;
  26. class QWidget;
  27.  
  28.  
  29. /**
  30.  * Use this class to access all K3b plugins (this does not include the
  31.  * KParts Plugins!).
  32.  * Like the K3bCore the single instance (which has to be created manually)
  33.  * can be obtained with the k3bpluginmanager macro.
  34.  */
  35. class LIBK3B_EXPORT K3bPluginManager : public QObject
  36. {
  37.   Q_OBJECT
  38.  
  39.  public:
  40.   K3bPluginManager( QObject* parent = 0, const char* name = 0 );
  41.   ~K3bPluginManager();
  42.  
  43.   /**
  44.    * if group is empty all plugins are returned
  45.    */
  46.   QPtrList<K3bPlugin> plugins( const QString& group = QString::null ) const;
  47.  
  48.   /**
  49.    * Returnes a list of the available groups.
  50.    */
  51.   QStringList groups() const;
  52.  
  53.   int pluginSystemVersion() const;
  54.  
  55.  public slots:
  56.   /**
  57.    * Loads all plugins from the ressource directories.
  58.    */
  59.   void loadAll();
  60.  
  61.   void loadPlugin( const QString& fileName );
  62.  
  63.   int execPluginDialog( K3bPlugin*, QWidget* parent = 0, const char* name = 0 );
  64.  
  65.  private:
  66.   class Private;
  67.   Private* d;
  68. };
  69.  
  70. #endif
  71.